<template>
    <div>
        <mt-header :title="title">
          <mt-button @click="goBack" icon="back" slot="left"></mt-button>
        </mt-header>
    </div>
</template>
<script>
    export default {
        name: 'nav-bar',
        props: ['title'],
        methods: {
            goBack: function(){
                this.$router.go(-1);
            }
        }

    }
</script>